package com.dz.goods.domain.entity;

import com.dz.common.core.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name="tb_spu")
@Data
@Entity
public class Spu extends BaseEntity implements Serializable{

	@Id
    @Column(name = "id")
	private Long id;

    @Column(name = "sn")
	private String sn;

    @Column(name = "name")
	private String name;

    @Column(name = "caption")
	private String caption;

    @Column(name = "brand_id")
	private Long brandId;

    @Column(name = "category1_id")
	private Long category1Id;

    @Column(name = "category2_id")
	private Long category2Id;

    @Column(name = "category3_id")
	private Long category3Id;

    @Column(name = "template_id")
	private Long templateId;

    @Column(name = "freight_id")
	private Long freightId;

    @Column(name = "image")
	private String image;

    @Column(name = "images")
	private String images;

    @Column(name = "sale_service")
	private String saleService;

    @Column(name = "introduction")
	private String introduction;

    @Column(name = "spec_items")
	private String specItems;

    @Column(name = "para_items")
	private String paraItems;

    @Column(name = "sale_num")
	private Integer saleNum;

    @Column(name = "comment_num")
	private Integer commentNum;

    @Column(name = "marketable_flag")
	private String marketableFlag;

    @Column(name = "enable_spec_flag")
	private String enableSpecFlag;

    @Column(name = "status")
	private String status;


}
